package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.member.FamilyMemberElder;
import com.zzyl.nursing.dto.member.MemberUserAddDto;
import com.zzyl.nursing.dto.member.QueryDeviceDataListByDay;
import com.zzyl.nursing.dto.member.QueryDeviceDataListByWeek;
import com.zzyl.nursing.dto.member.QueryDevicePropertyStatus;
import com.zzyl.nursing.vo.member.MemberInfo;
import com.zzyl.nursing.vo.member.MemberUserMy;

import java.util.List;
import java.util.Map;

/**
 *
 *@Author zhu
 *@Date 2025/10/29 16:32
 */
public interface MemberUserService extends IService<FamilyMemberElder> {
    /**
     * 绑定家人
     * @param dto
     */
    void add(MemberUserAddDto dto);

    /**
     * 查询家人列表
     * @return
     */
    List<MemberUserMy> my();




    /**
     * 分页查询
     * @param
     * @param
     * @return
     */

    List<MemberInfo> listpage();

    /**
     * 查询健康数据
     * @param
     */
    Map<String, Object> QueryDevicePropertyStatus( QueryDevicePropertyStatus dto);

    /**
     * 按天统计指标
     * @param quary
     * @return
     */
    List<Map<String, Object>> queryDeviceDataListByDay(QueryDeviceDataListByDay quary);

    /**
     * 按周统计指标
     * @param quary
     * @return
     */
    List<Map<String, Object>> queryDeviceDataListByWeek(QueryDeviceDataListByWeek quary);

    /**
     * 解绑老人
     * @param id
     */
    void deletebyid(Integer id);
}